/*
 * @Description: 
 * @Date: 2022-12-06 20:21:30
 * @Author: lizhiqiang
 */
import { CaptchaAPIRes, LoginAPIReq, LoginAPIRes } from "@/types/api";
import { StaticList } from '@/types/common';
import { get, post, put, del } from "../utils/request"
// 会员查询分页列表
export const MemberListAPI = (params: { pageNum: number; pageSize: number; status?: string, number?: string }): Promise<StaticList> => get("/api/platform-member/list", params);
// 删除会员
export const DelMemberAPI = (params:[]): Promise<ResponseType> => del("/platform-member/delete", params);
// 冻结会员账号
export const freezeOrThawMemberAPI = (params:{id: number,state:number} ): Promise<StaticList> => post(`/platform-member/freeze/thaw/${params.id}/${params.state}`);
// 获取会员详情
export const MemberDetailsAPI = (id: string): Promise<ResponseType> => get(`/platform-member/info/${id}`);
// 保存会员
export const SaveMemberAPI = (params:{}): Promise<ResponseType> => post(`/platform-member/save`,params);
// 更新会员
export const UpdateMemberAPI = (params:{}): Promise<ResponseType> => put(`/platform-member/update`,params);